import React from 'react'
import Taro  from '@tarojs/taro'
import { View } from '@tarojs/components'

import './index.scss'
import { Icon } from '@/components/Icon'

export interface ISearchProps {
    placeholder?: string
}


export const Search:React.FC<ISearchProps> = ({ placeholder })=>{

    return (
        <View className="xxm-searchbox" onClick={()=>{Taro.navigateTo({url:'/pages/home/search/index'})}}>
            <Icon name="search" color="#fff" size={13} />
            {placeholder}
        </View>
    )
}
